package com.googlecode.struts2scope.scope;

import com.googlecode.struts2scope.context.factory.ContextFactory;
import com.googlecode.struts2scope.context.factory.FlashContextFactory;
import com.googlecode.struts2scope.context.factory.RequestContextFactory;
import com.googlecode.struts2scope.context.factory.SessionContextFactory;


public enum ScopeType {

	FLASH {
		public ContextFactory getFactory() {
			return new FlashContextFactory();
		}
	},
	SESSION {
		public ContextFactory getFactory() {
			return new SessionContextFactory();
		}
	},
	REQUEST {
		public ContextFactory getFactory() {
			return new RequestContextFactory();
		}
	};
	
	public abstract ContextFactory getFactory();
}
